package com.sp.scmdb.bean;

public class DepartmentBean extends PageBean {
	
	/** 部门ID */
	private String id;

	/** 部门名称 */
	private String deptName;
	
	/**
	 * 部门ID取得
	 * @return 部门ID
	 */
	public String getId() {
		return id;
	}

	/**
	 * 部门ID设置
	 * @param id
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 部门名称取得
	 * @return 部门名称
	 */
	public String getDeptName() {
		return deptName;
	}

	/**
	 * 部门名称设置
	 * @param deptName
	 */
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((deptName == null) ? 0 : deptName.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DepartmentBean other = (DepartmentBean) obj;
		if (deptName == null) {
			if (other.deptName != null)
				return false;
		} else if (!deptName.equals(other.deptName))
			return false;
		return true;
	}
}
